﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>HOOK</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>
<P><FONT face=Courier>[</FONT><FONT face=Courier><FONT 
color=#2b91af>DllImport</FONT>(<FONT color=#a31515>"user32.dll"</FONT>, CharSet 
= <FONT color=#2b91af>CharSet</FONT>.Auto, CallingConvention = <FONT 
color=#2b91af>CallingConvention</FONT></FONT><FONT 
face=Courier>.StdCall)]</FONT></P>
<P><FONT face=Courier><FONT color=#0000ff>public</FONT> <FONT 
color=#0000ff>static</FONT> <FONT color=#0000ff>extern</FONT> <FONT 
color=#0000ff>void</FONT> mouse_event(<FONT color=#0000ff>int</FONT> dwFlags, 
<FONT color=#0000ff>int</FONT> dx, <FONT color=#0000ff>int</FONT> dy, <FONT 
color=#0000ff>int</FONT> cButtons, <FONT color=#0000ff>int</FONT></FONT><FONT 
face=Courier> dwExtraInfo);</FONT></P>
<P><FONT face=Courier>[</FONT><FONT face=Courier><FONT 
color=#2b91af>DllImport</FONT>(<FONT color=#a31515>"user32"</FONT></FONT><FONT 
face=Courier>)]</FONT></P>
<P><FONT face=Courier><FONT color=#0000ff>public</FONT> <FONT 
color=#0000ff>static</FONT> <FONT color=#0000ff>extern</FONT> <FONT 
color=#0000ff>int</FONT> SetCursorPos(<FONT color=#0000ff>int</FONT> x, <FONT 
color=#0000ff>int</FONT> y);</FONT> </P>
<P>&nbsp;</P><FONT face=Courier><FONT 
color=#0000ff size=2>
<P>private</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_MOVE = 0x0001; </FONT><FONT 
color=#008000 size=2>/* mouse move */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_LEFTDOWN = 0x0002; </FONT><FONT 
color=#008000 size=2>/* left button down */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_LEFTUP = 0x0004; </FONT><FONT 
color=#008000 size=2>/* left button up */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_RIGHTDOWN = 0x0008; </FONT><FONT 
color=#008000 size=2>/* right button down */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_RIGHTUP = 0x0010; </FONT><FONT 
color=#008000 size=2>/* right button up */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_MIDDLEDOWN = 0x0020; </FONT><FONT 
color=#008000 size=2>/* middle button down */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_MIDDLEUP = 0x0040; </FONT><FONT 
color=#008000 size=2>/* middle button up */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_XDOWN = 0x0080; </FONT><FONT 
color=#008000 size=2>/* x button down */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_XUP = 0x0100; </FONT><FONT 
color=#008000 size=2>/* x button down */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_WHEEL = 0x0800; </FONT><FONT 
color=#008000 size=2>/* wheel button rolled */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_VIRTUALDESK = 0x4000; </FONT><FONT 
color=#008000 size=2>/* map to entire virtual desktop */</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>int</FONT><FONT size=2> MOUSEEVENTF_ABSOLUTE = 0x8000; </FONT><FONT 
color=#008000 size=2>/* absolute move */</P></FONT></FONT></body>
</html>
